package com.lazy.book.common.constant;

public class GlobalConstant {
  private GlobalConstant() {
    throw new IllegalStateException("GlobalConstant class Illegal");
  }

  public static final String UTF_8 = "utf-8";

  /**
   * redis的发布订阅channel（用于 [服务->websocket]方向的消息传递）
   */
  public static final String SERVICE_TO_WS = "channel:service_to_ws";

  /**
   * redis的发布订阅channel（用于 [websocket->服务]方向的消息传递）
   */
  public static final String WS_TO_SERVICE = "channel:ws_to_service";

  /**
   * redis的发布订阅channel （用于permission变更）
   */
  public static final String CHANGE_PERMISSIONS_SIGNAL = "change_permissions_signal";

  /**
   * 超级管理员角色标识
   */
  public static final String SUPER_ROLE = "admin";
}
